#files that we want to parse with the AR yang parsing tool
YANG_PARSED_FILES = \
    $(top_srcdir)/common/yumaworks/yumaworks-extensions.yang \
    $(top_srcdir)/common/yumaworks/yuma-ncx.yang \
    $(top_srcdir)/rfc/ietf-inet-types.yang \
    $(top_srcdir)/rfc/ietf-interfaces.yang \
    $(top_srcdir)/rfc/ietf-ip.yang \
    $(top_srcdir)/rfc/iana-if-type.yang \
    $(top_srcdir)/common/dell/dell-yang-types.yang \
    $(top_srcdir)/common/dell/dell-extensions.yang \
    $(top_scrdir)/openconfig/openconfig-telemetry.yang \
    $(top_scrdir)/openconfig/openconfig-telemetry-types.yang \
    $(top_scrdir)/openconfig/openconfig-extensions.yang \
    $(top_scrdir)/openconfig/openconfig-inet-types.yang \
    $(top_scrdir)/yang-models/app-telemetry.yang \
    $(top_scrdir)/yang-models/dell-base-cleanup-events.yang \
    $(top_srcdir)/yang-models/dell-base-etl-common.yang \
    $(top_srcdir)/yang-models/dell-base-routing.yang \
    $(top_srcdir)/yang-models/dell-base-acl.yang \
    $(top_srcdir)/yang-models/dell-base-pas.yang \
    $(top_srcdir)/yang-models/dell-base-if-mgmt.yang \
    $(top_srcdir)/yang-models/dell-base-if-linux.yang \
    $(top_srcdir)/yang-models/dell-base-media.yang \
    $(top_srcdir)/yang-models/dell-base-if-vlan.yang \
    $(top_srcdir)/yang-models/dell-base-stg.yang \
    $(top_srcdir)/yang-models/dell-base-platform-common.yang \
    $(top_srcdir)/yang-models/dell-interface.yang \
    $(top_srcdir)/yang-models/dell-base-if.yang \
    $(top_srcdir)/yang-models/dell-base-sflow.yang \
    $(top_srcdir)/yang-models/dell-base-switch-element.yang \
    $(top_srcdir)/yang-models/dell-base-mirror.yang \
    $(top_srcdir)/yang-models/dell-base-if-lag.yang \
    $(top_srcdir)/yang-models/dell-base-packet.yang \
    $(top_srcdir)/yang-models/dell-base-interface-common.yang \
    $(top_srcdir)/yang-models/dell-base-ip.yang \
    $(top_srcdir)/yang-models/dell-base-qos.yang \
    $(top_srcdir)/yang-models/dell-base-l2-mac.yang \
    $(top_srcdir)/yang-models/dell-base-if-phy.yang \
    $(top_srcdir)/yang-models/dell-base-env-tempctl.yang \
    $(top_srcdir)/yang-models/dell-base-common.yang \
    $(top_srcdir)/yang-models/dell-base-etl.yang \
    $(top_srcdir)/yang-models/dell-base-neighbor.yang \
    $(top_srcdir)/yang-models/dell-base-hash.yang \
    $(top_srcdir)/yang-models/dell-base-udf.yang \
    $(top_srcdir)/yang-models/dell-base-if-fc.yang \
    $(top_srcdir)/yang-models/dell-base-port-group.yang \
    $(top_srcdir)/yang-models/dell-port-group.yang \
    $(top_srcdir)/yang-models/dell-base-alms.yang \
    $(top_srcdir)/yang-models/dell-base-trap.yang \
    $(top_srcdir)/yang-models/l3-multicast.yang \
    $(top_srcdir)/yang-models/acl-config.yang \
    $(top_srcdir)/yang-models/os-icmp-config.yang \
    $(top_srcdir)/yang-models/os-routing-events.yang \
    $(top_srcdir)/yang-models/tam.yang \
    $(top_srcdir)/rfc/ietf-network-instance.yang \
    $(top_srcdir)/rfc/ietf-yang-library.yang \
    $(top_srcdir)/rfc/ietf-yang-schema-mount.yang \
    $(top_srcdir)/yang-models/vrf-mgmt.yang \
    $(top_srcdir)/yang-models/vrf-firewall.yang \
    $(top_srcdir)/rfc/ietf-access-control-list.yang \
    $(top_srcdir)/rfc/ietf-dhcp.yang \
    $(top_srcdir)/rfc/ietf-igmp-mld-snooping.yang \
    $(top_srcdir)/rfc/ietf-ipsec.yang \
    $(top_srcdir)/rfc/ietf-key-chain.yang \
    $(top_srcdir)/rfc/ietf-ntp.yang \
    $(top_srcdir)/rfc/ietf-packet-fields.yang \
    $(top_srcdir)/rfc/ietf-routing-types.yang \
    $(top_srcdir)/rfc/ietf-routing.yang \
    $(top_srcdir)/rfc/ietf-inet-address.yang \
    $(top_srcdir)/yang-models/bridge-model.yang \
    $(top_srcdir)/yang-models/l2-multicast.yang \
    $(top_srcdir)/yang-models/spd.yang \
    $(top_srcdir)/yang-models/system-status.yang \
    $(top_srcdir)/yang-models/ipsec-sad.yang \
    $(top_srcdir)/yang-models/tunnel.yang \
    $(top_srcdir)/yang-models/app-ztd.yang


#Create VPATH for yang models
YANG_DIRS = $(abs_srcdir)/common/yumaworks:$(abs_srcdir)/rfc:$(abs_srcdir)/common/dell:$(abs_srcdir)/yang-models:$(abs_srcdir)/openconfig
vpath %.yang ${YANG_DIRS}

YANG_GENERATED_SRCS = \
    @YANG_OUTPUT@/yumaworks-extensions.cpp \
    @YANG_OUTPUT@/yuma-ncx.cpp \
    @YANG_OUTPUT@/ietf-inet-types.cpp \
    @YANG_OUTPUT@/ietf-interfaces.cpp \
    @YANG_OUTPUT@/ietf-ip.cpp \
    @YANG_OUTPUT@/iana-if-type.cpp \
    @YANG_OUTPUT@/dell-yang-types.cpp \
    @YANG_OUTPUT@/dell-extensions.cpp \
    @YANG_OUTPUT@/dell-base-cleanup-events.cpp \
    @YANG_OUTPUT@/dell-base-etl-common.cpp \
    @YANG_OUTPUT@/dell-base-routing.cpp \
    @YANG_OUTPUT@/dell-base-acl.cpp \
    @YANG_OUTPUT@/dell-base-pas.cpp \
    @YANG_OUTPUT@/dell-base-if-mgmt.cpp \
    @YANG_OUTPUT@/dell-base-if-linux.cpp \
    @YANG_OUTPUT@/dell-base-media.cpp \
    @YANG_OUTPUT@/dell-base-if-vlan.cpp \
    @YANG_OUTPUT@/dell-base-stg.cpp \
    @YANG_OUTPUT@/dell-base-platform-common.cpp \
    @YANG_OUTPUT@/dell-interface.cpp \
    @YANG_OUTPUT@/dell-base-if.cpp \
    @YANG_OUTPUT@/dell-base-sflow.cpp \
    @YANG_OUTPUT@/dell-base-switch-element.cpp \
    @YANG_OUTPUT@/dell-base-mirror.cpp \
    @YANG_OUTPUT@/dell-base-if-lag.cpp \
    @YANG_OUTPUT@/dell-base-packet.cpp \
    @YANG_OUTPUT@/dell-base-interface-common.cpp \
    @YANG_OUTPUT@/dell-base-ip.cpp \
    @YANG_OUTPUT@/dell-base-qos.cpp \
    @YANG_OUTPUT@/dell-base-l2-mac.cpp \
    @YANG_OUTPUT@/dell-base-if-phy.cpp \
    @YANG_OUTPUT@/dell-base-env-tempctl.cpp \
    @YANG_OUTPUT@/dell-base-common.cpp \
    @YANG_OUTPUT@/dell-base-etl.cpp \
    @YANG_OUTPUT@/dell-base-neighbor.cpp \
    @YANG_OUTPUT@/dell-base-hash.cpp \
    @YANG_OUTPUT@/dell-base-udf.cpp \
    @YANG_OUTPUT@/dell-base-if-fc.cpp \
    @YANG_OUTPUT@/dell-base-port-group.cpp \
    @YANG_OUTPUT@/dell-port-group.cpp \
    @YANG_OUTPUT@/dell-base-alms.cpp \
    @YANG_OUTPUT@/l3-multicast.cpp \
    @YANG_OUTPUT@/openconfig-telemetry.cpp \
    @YANG_OUTPUT@/openconfig-extensions.cpp \
    @YANG_OUTPUT@/openconfig-inet-types.cpp \
    @YANG_OUTPUT@/openconfig-telemetry-types.cpp \
    @YANG_OUTPUT@/app-telemetry.cpp \
    @YANG_OUTPUT@/tam.cpp \
    @YANG_OUTPUT@/acl-config.cpp \
    @YANG_OUTPUT@/os-icmp-config.cpp \
    @YANG_OUTPUT@/os-routing-events.cpp \
    @YANG_OUTPUT@/ietf-network-instance.cpp \
    @YANG_OUTPUT@/ietf-yang-library.cpp \
    @YANG_OUTPUT@/ietf-yang-schema-mount.cpp \
    @YANG_OUTPUT@/vrf-mgmt.cpp \
    @YANG_OUTPUT@/vrf-firewall.cpp \
    @YANG_OUTPUT@/ietf-access-control-list.cpp \
    @YANG_OUTPUT@/ietf-dhcp.cpp \
    @YANG_OUTPUT@/ietf-igmp-mld-snooping.cpp \
    @YANG_OUTPUT@/ietf-ipsec.cpp \
    @YANG_OUTPUT@/ietf-key-chain.cpp \
    @YANG_OUTPUT@/ietf-ntp.cpp \
    @YANG_OUTPUT@/ietf-packet-fields.cpp \
    @YANG_OUTPUT@/ietf-routing-types.cpp \
    @YANG_OUTPUT@/ietf-routing.cpp \
    @YANG_OUTPUT@/ietf-inet-address.cpp \
    @YANG_OUTPUT@/bridge-model.cpp \
    @YANG_OUTPUT@/l2-multicast.cpp \
    @YANG_OUTPUT@/spd.cpp \
    @YANG_OUTPUT@/system-status.cpp \
    @YANG_OUTPUT@/yang-models/ipsec-sad.cpp \
    @YANG_OUTPUT@/yang-models/tunnel.cpp \
    @YANG_OUTPUT@/yang-models/app-ztd.cpp

YANG_GENERATED_HDRS = \
    @YANG_OUTPUT@/yumaworks-extensions.h \
    @YANG_OUTPUT@/yuma-ncx.h \
    @YANG_OUTPUT@/ietf-inet-types.h \
    @YANG_OUTPUT@/ietf-interfaces.h \
    @YANG_OUTPUT@/ietf-ip.h \
    @YANG_OUTPUT@/iana-if-type.h \
    @YANG_OUTPUT@/dell-yang-types.h \
    @YANG_OUTPUT@/dell-extensions.h \
    @YANG_OUTPUT@/dell-base-cleanup-events.h \
    @YANG_OUTPUT@/dell-base-etl-common.h \
    @YANG_OUTPUT@/dell-base-routing.h \
    @YANG_OUTPUT@/dell-base-acl.h \
    @YANG_OUTPUT@/dell-base-pas.h \
    @YANG_OUTPUT@/dell-base-if-mgmt.h \
    @YANG_OUTPUT@/dell-base-if-linux.h \
    @YANG_OUTPUT@/dell-base-media.h \
    @YANG_OUTPUT@/dell-base-if-vlan.h \
    @YANG_OUTPUT@/dell-base-stg.h \
    @YANG_OUTPUT@/dell-base-platform-common.h \
    @YANG_OUTPUT@/dell-interface.h \
    @YANG_OUTPUT@/dell-base-if.h \
    @YANG_OUTPUT@/dell-base-sflow.h \
    @YANG_OUTPUT@/dell-base-switch-element.h \
    @YANG_OUTPUT@/dell-base-mirror.h \
    @YANG_OUTPUT@/dell-base-if-lag.h \
    @YANG_OUTPUT@/dell-base-packet.h \
    @YANG_OUTPUT@/dell-base-interface-common.h \
    @YANG_OUTPUT@/dell-base-ip.h \
    @YANG_OUTPUT@/dell-base-qos.h \
    @YANG_OUTPUT@/dell-base-l2-mac.h \
    @YANG_OUTPUT@/dell-base-if-phy.h \
    @YANG_OUTPUT@/dell-base-env-tempctl.h \
    @YANG_OUTPUT@/dell-base-common.h \
    @YANG_OUTPUT@/dell-base-etl.h \
    @YANG_OUTPUT@/dell-base-neighbor.h \
    @YANG_OUTPUT@/dell-base-hash.h \
    @YANG_OUTPUT@/dell-base-udf.h \
    @YANG_OUTPUT@/dell-base-if-fc.h \
    @YANG_OUTPUT@/dell-base-port-group.h \
    @YANG_OUTPUT@/dell-base-trap.h \
    @YANG_OUTPUT@/dell-port-group.h \
    @YANG_OUTPUT@/dell-base-alms.h \
    @YANG_OUTPUT@/l3-multicast.h \
    @YANG_OUTPUT@/openconfig-telemetry-types.h \
    @YANG_OUTPUT@/openconfig-extensions.h \
    @YANG_OUTPUT@/openconfig-inet-types.h \
    @YANG_OUTPUT@/openconfig-telemetry.h \
    @YANG_OUTPUT@/app-telemetry.h \
    @YANG_OUTPUT@/tam.h \
    @YANG_OUTPUT@/acl-config.h \
    @YANG_OUTPUT@/os-icmp-config.h \
    @YANG_OUTPUT@/os-routing-events.h \
    @YANG_OUTPUT@/ietf-network-instance.h \
    @YANG_OUTPUT@/ietf-yang-library.h \
    @YANG_OUTPUT@/ietf-yang-schema-mount.h \
    @YANG_OUTPUT@/vrf-mgmt.h \
    @YANG_OUTPUT@/vrf-firewall.h \
    @YANG_OUTPUT@/ietf-access-control-list.h \
    @YANG_OUTPUT@/ietf-dhcp.h \
    @YANG_OUTPUT@/ietf-igmp-mld-snooping.h \
    @YANG_OUTPUT@/ietf-ipsec.h \
    @YANG_OUTPUT@/ietf-key-chain.h \
    @YANG_OUTPUT@/ietf-ntp.h \
    @YANG_OUTPUT@/ietf-packet-fields.h \
    @YANG_OUTPUT@/ietf-routing-types.h \
    @YANG_OUTPUT@/ietf-routing.h \
    @YANG_OUTPUT@/ietf-inet-address.h \
    @YANG_OUTPUT@/bridge-model.h \
    @YANG_OUTPUT@/l2-multicast.h \
    @YANG_OUTPUT@/spd.h \
    @YANG_OUTPUT@/system-status.h \
    @YANG_OUTPUT@/ipsec-sad.h \
    @YANG_OUTPUT@/tunnel.h \
    @YANG_OUTPUT@/app-ztd.h

BUILT_SOURCES = ${YANG_GENERATED_SRCS} ${YANG_GENERATED_HDRS}

nobase_include_HEADERS = ${YANG_GENERATED_HDRS}

lib_LTLIBRARIES = \
    libcpsclass_yumaworks-extensions.la \
    libcpsclass_yuma-ncx.la \
    libcpsclass_ietf-inet-types.la \
    libcpsclass_ietf-interfaces.la \
    libcpsclass_ietf-ip.la \
    libcpsclass_iana-if-type.la \
    libcpsclass_dell-yang-types.la \
    libcpsclass_dell-extensions.la \
    libcpsclass_dell-base-etl-common.la \
    libcpsclass_dell-base-routing.la \
    libcpsclass_dell-base-acl.la \
    libcpsclass_dell-base-pas.la \
    libcpsclass_dell-base-if-mgmt.la \
    libcpsclass_dell-base-if-linux.la \
    libcpsclass_dell-base-media.la \
    libcpsclass_dell-base-if-vlan.la \
    libcpsclass_dell-base-stg.la \
    libcpsclass_dell-base-platform-common.la \
    libcpsclass_dell-interface.la \
    libcpsclass_dell-base-if.la \
    libcpsclass_dell-base-sflow.la \
    libcpsclass_dell-base-switch-element.la \
    libcpsclass_dell-base-mirror.la \
    libcpsclass_dell-base-if-lag.la \
    libcpsclass_dell-base-packet.la \
    libcpsclass_dell-base-interface-common.la \
    libcpsclass_dell-base-ip.la \
    libcpsclass_dell-base-qos.la \
    libcpsclass_dell-base-l2-mac.la \
    libcpsclass_dell-base-if-phy.la \
    libcpsclass_dell-base-env-tempctl.la \
    libcpsclass_dell-base-common.la \
    libcpsclass_dell-base-etl.la \
    libcpsclass_dell-base-neighbor.la \
    libcpsclass_dell-base-hash.la \
    libcpsclass_dell-base-udf.la \
    libcpsclass_dell-base-if-fc.la \
    libcpsclass_dell-base-port-group.la \
    libcpsclass_dell-port-group.la \
    libcpsclass_dell-base-alms.la \
    libcpsclass_dell-base-trap.la \
    libcpsclass_acl-config.la \
    libcpsclass_os-icmp-config.la \
    libcpsclass_os-routing-events.la \
    libcpsclass_ietf-network-instance.la \
    libcpsclass_ietf-yang-library.la \
    libcpsclass_ietf-yang-schema-mount.la \
    libcpsclass_vrf-mgmt.la \
    libcpsclass_vrf-firewall.la \
    libcpsclass_ietf-access-control-list.la \
    libcpsclass_ietf-dhcp.la \
    libcpsclass_ietf-igmp-mld-snooping.la \
    libcpsclass_ietf-ipsec.la \
    libcpsclass_ietf-key-chain.la \
    libcpsclass_ietf-ntp.la \
    libcpsclass_ietf-packet-fields.la \
    libcpsclass_ietf-routing-types.la \
    libcpsclass_ietf-routing.la \
    libcpsclass_ietf-inet-address.la \
    libcpsclass_bridge-model.la \
    libcpsclass_l2-multicast.la \
    libcpsclass_spd.la \
    libcpsclass_system-status.la \
    libcpsclass_ipsec-sad.la \
    libcpsclass_tunnel.la \
    libcpsclass_app-ztd.la \
    libcpsclass_dell-base-cleanup-events.la \
    libcpsclass_l3-multicast.la \
    libcpsclass_openconfig-telemetry-types.la \
    libcpsclass_openconfig-extensions.la \
    libcpsclass_openconfig-inet-types.la \
    libcpsclass_app-telemetry.la \
    libcpsclass_tam.la \
    libcpsclass_openconfig-telemetry.la


AM_CPPFLAGS = -I@YANG_OUTPUT@ -I$(oldincludedir)/opx
AM_CXXFLAGS = -fPIC --std=c++11
AM_LDFLAGS = -version-info 1:1:0

libcpsclass_yumaworks_extensions_la_SOURCES = @YANG_OUTPUT@/yumaworks-extensions.cpp
libcpsclass_yumaworks_extensions_la_LIBADD =   -lopx_cps_api_common

libcpsclass_yuma_ncx_la_SOURCES = @YANG_OUTPUT@/yuma-ncx.cpp
libcpsclass_yuma_ncx_la_LIBADD =   -lopx_cps_api_common

libcpsclass_ietf_inet_types_la_SOURCES = @YANG_OUTPUT@/ietf-inet-types.cpp
libcpsclass_ietf_inet_types_la_LIBADD =   -lopx_cps_api_common

libcpsclass_ietf_interfaces_la_SOURCES = @YANG_OUTPUT@/ietf-interfaces.cpp
libcpsclass_ietf_interfaces_la_LIBADD =   -lopx_cps_api_common

libcpsclass_ietf_ip_la_SOURCES = @YANG_OUTPUT@/ietf-ip.cpp
libcpsclass_ietf_ip_la_LIBADD =   -lopx_cps_api_common

libcpsclass_iana_if_type_la_SOURCES = @YANG_OUTPUT@/iana-if-type.cpp
libcpsclass_iana_if_type_la_LIBADD =   -lopx_cps_api_common

libcpsclass_dell_yang_types_la_SOURCES = @YANG_OUTPUT@/dell-yang-types.cpp
libcpsclass_dell_yang_types_la_LIBADD =   -lopx_cps_api_common

libcpsclass_dell_extensions_la_SOURCES = @YANG_OUTPUT@/dell-extensions.cpp
libcpsclass_dell_extensions_la_LIBADD =   -lopx_cps_api_common

libcpsclass_dell_base_etl_common_la_SOURCES = @YANG_OUTPUT@/dell-base-etl-common.cpp
libcpsclass_dell_base_etl_common_la_LIBADD =   -lopx_cps_api_common

libcpsclass_dell_base_routing_la_SOURCES = @YANG_OUTPUT@/dell-base-routing.cpp
libcpsclass_dell_base_routing_la_LIBADD =   -lopx_cps_api_common

libcpsclass_dell_base_acl_la_SOURCES = @YANG_OUTPUT@/dell-base-acl.cpp
libcpsclass_dell_base_acl_la_LIBADD =   -lopx_cps_api_common

libcpsclass_dell_base_pas_la_SOURCES = @YANG_OUTPUT@/dell-base-pas.cpp
libcpsclass_dell_base_pas_la_LIBADD =   -lopx_cps_api_common

libcpsclass_dell_base_if_mgmt_la_SOURCES = @YANG_OUTPUT@/dell-base-if-mgmt.cpp
libcpsclass_dell_base_if_mgmt_la_LIBADD =   -lopx_cps_api_common

libcpsclass_dell_base_if_linux_la_SOURCES = @YANG_OUTPUT@/dell-base-if-linux.cpp
libcpsclass_dell_base_if_linux_la_LIBADD =   -lopx_cps_api_common

libcpsclass_dell_base_media_la_SOURCES = @YANG_OUTPUT@/dell-base-media.cpp
libcpsclass_dell_base_media_la_LIBADD =   -lopx_cps_api_common

libcpsclass_dell_base_if_vlan_la_SOURCES = @YANG_OUTPUT@/dell-base-if-vlan.cpp
libcpsclass_dell_base_if_vlan_la_LIBADD =   -lopx_cps_api_common

libcpsclass_dell_base_stg_la_SOURCES = @YANG_OUTPUT@/dell-base-stg.cpp
libcpsclass_dell_base_stg_la_LIBADD =   -lopx_cps_api_common

libcpsclass_dell_base_platform_common_la_SOURCES = @YANG_OUTPUT@/dell-base-platform-common.cpp
libcpsclass_dell_base_platform_common_la_LIBADD =   -lopx_cps_api_common

libcpsclass_dell_interface_la_SOURCES = @YANG_OUTPUT@/dell-interface.cpp
libcpsclass_dell_interface_la_LIBADD =   -lopx_cps_api_common

libcpsclass_dell_base_if_la_SOURCES = @YANG_OUTPUT@/dell-base-if.cpp
libcpsclass_dell_base_if_la_LIBADD =   -lopx_cps_api_common

libcpsclass_dell_base_sflow_la_SOURCES = @YANG_OUTPUT@/dell-base-sflow.cpp
libcpsclass_dell_base_sflow_la_LIBADD =   -lopx_cps_api_common

libcpsclass_dell_base_switch_element_la_SOURCES = @YANG_OUTPUT@/dell-base-switch-element.cpp
libcpsclass_dell_base_switch_element_la_LIBADD =   -lopx_cps_api_common

libcpsclass_dell_base_mirror_la_SOURCES = @YANG_OUTPUT@/dell-base-mirror.cpp
libcpsclass_dell_base_mirror_la_LIBADD =   -lopx_cps_api_common

libcpsclass_dell_base_if_lag_la_SOURCES = @YANG_OUTPUT@/dell-base-if-lag.cpp
libcpsclass_dell_base_if_lag_la_LIBADD =   -lopx_cps_api_common

libcpsclass_dell_base_packet_la_SOURCES = @YANG_OUTPUT@/dell-base-packet.cpp
libcpsclass_dell_base_packet_la_LIBADD =   -lopx_cps_api_common

libcpsclass_dell_base_interface_common_la_SOURCES = @YANG_OUTPUT@/dell-base-interface-common.cpp
libcpsclass_dell_base_interface_common_la_LIBADD =   -lopx_cps_api_common

libcpsclass_dell_base_ip_la_SOURCES = @YANG_OUTPUT@/dell-base-ip.cpp
libcpsclass_dell_base_ip_la_LIBADD =   -lopx_cps_api_common

libcpsclass_dell_base_qos_la_SOURCES = @YANG_OUTPUT@/dell-base-qos.cpp
libcpsclass_dell_base_qos_la_LIBADD =   -lopx_cps_api_common

libcpsclass_dell_base_l2_mac_la_SOURCES = @YANG_OUTPUT@/dell-base-l2-mac.cpp
libcpsclass_dell_base_l2_mac_la_LIBADD =   -lopx_cps_api_common

libcpsclass_dell_base_if_phy_la_SOURCES = @YANG_OUTPUT@/dell-base-if-phy.cpp
libcpsclass_dell_base_if_phy_la_LIBADD =   -lopx_cps_api_common

libcpsclass_dell_base_env_tempctl_la_SOURCES = @YANG_OUTPUT@/dell-base-env-tempctl.cpp
libcpsclass_dell_base_env_tempctl_la_LIBADD =   -lopx_cps_api_common

libcpsclass_dell_base_common_la_SOURCES = @YANG_OUTPUT@/dell-base-common.cpp
libcpsclass_dell_base_common_la_LIBADD =   -lopx_cps_api_common

libcpsclass_dell_base_etl_la_SOURCES = @YANG_OUTPUT@/dell-base-etl.cpp
libcpsclass_dell_base_etl_la_LIBADD =   -lopx_cps_api_common

libcpsclass_dell_base_neighbor_la_SOURCES = @YANG_OUTPUT@/dell-base-neighbor.cpp
libcpsclass_dell_base_neighbor_la_LIBADD =   -lopx_cps_api_common

libcpsclass_dell_base_hash_la_SOURCES = @YANG_OUTPUT@/dell-base-hash.cpp
libcpsclass_dell_base_hash_la_LIBADD =   -lopx_cps_api_common

libcpsclass_dell_base_udf_la_SOURCES = @YANG_OUTPUT@/dell-base-udf.cpp
libcpsclass_dell_base_udf_la_LIBADD =   -lopx_cps_api_common

libcpsclass_dell_base_if_fc_la_SOURCES = @YANG_OUTPUT@/dell-base-if-fc.cpp
libcpsclass_dell_base_if_fc_la_LIBADD =   -lopx_cps_api_common

libcpsclass_dell_base_port_group_la_SOURCES = @YANG_OUTPUT@/dell-base-port-group.cpp
libcpsclass_dell_base_port_group_la_LIBADD =   -lopx_cps_api_common

libcpsclass_dell_port_group_la_SOURCES = @YANG_OUTPUT@/dell-port-group.cpp
libcpsclass_dell_port_group_la_LIBADD =   -lopx_cps_api_common

libcpsclass_dell_base_alms_la_SOURCES = @YANG_OUTPUT@/dell-base-alms.cpp
libcpsclass_dell_base_alms_la_LIBADD =   -lopx_cps_api_common

libcpsclass_dell_base_trap_la_SOURCES = @YANG_OUTPUT@/dell-base-trap.cpp
libcpsclass_dell_base_trap_la_LIBADD =   -lopx_cps_api_common

libcpsclass_acl_config_la_SOURCES = @YANG_OUTPUT@/acl-config.cpp
libcpsclass_acl_config_la_LIBADD =   -lopx_cps_api_common

libcpsclass_os_icmp_config_la_SOURCES = @YANG_OUTPUT@/os-icmp-config.cpp
libcpsclass_os_icmp_config_la_LIBADD =   -lopx_cps_api_common

libcpsclass_os_routing_events_la_SOURCES = @YANG_OUTPUT@/os-routing-events.cpp
libcpsclass_os_routing_events_la_LIBADD =   -lopx_cps_api_common

libcpsclass_ietf_network_instance_la_SOURCES = @YANG_OUTPUT@/ietf-network-instance.cpp
libcpsclass_ietf_network_instance_la_LIBADD =   -lopx_cps_api_common

libcpsclass_ietf_yang_library_la_SOURCES = @YANG_OUTPUT@/ietf-yang-library.cpp
libcpsclass_ietf_yang_library_la_LIBADD =   -lopx_cps_api_common

libcpsclass_ietf_yang_schema_mount_la_SOURCES = @YANG_OUTPUT@/ietf-yang-schema-mount.cpp
libcpsclass_ietf_yang_schema_mount_la_LIBADD =   -lopx_cps_api_common

libcpsclass_vrf_mgmt_la_SOURCES = @YANG_OUTPUT@/vrf-mgmt.cpp
libcpsclass_vrf_mgmt_la_LIBADD =   -lopx_cps_api_common

libcpsclass_vrf_firewall_la_SOURCES = @YANG_OUTPUT@/vrf-firewall.cpp
libcpsclass_vrf_firewall_la_LIBADD =   -lopx_cps_api_common

libcpsclass_ietf_access_control_list_la_SOURCES = @YANG_OUTPUT@/ietf-access-control-list.cpp
libcpsclass_ietf_access_control_list_la_LIBADD =   -lopx_cps_api_common

libcpsclass_ietf_dhcp_la_SOURCES = @YANG_OUTPUT@/ietf-dhcp.cpp
libcpsclass_ietf_dhcp_la_LIBADD =   -lopx_cps_api_common

libcpsclass_ietf_igmp_mld_snooping_la_SOURCES = @YANG_OUTPUT@/ietf-igmp-mld-snooping.cpp
libcpsclass_ietf_igmp_mld_snooping_la_LIBADD =   -lopx_cps_api_common

libcpsclass_ietf_ipsec_la_SOURCES = @YANG_OUTPUT@/ietf-ipsec.cpp
libcpsclass_ietf_ipsec_la_LIBADD =   -lopx_cps_api_common

libcpsclass_ietf_key_chain_la_SOURCES = @YANG_OUTPUT@/ietf-key-chain.cpp
libcpsclass_ietf_key_chain_la_LIBADD =   -lopx_cps_api_common

libcpsclass_ietf_ntp_la_SOURCES = @YANG_OUTPUT@/ietf-ntp.cpp
libcpsclass_ietf_ntp_la_LIBADD =   -lopx_cps_api_common

libcpsclass_ietf_packet_fields_la_SOURCES = @YANG_OUTPUT@/ietf-packet-fields.cpp
libcpsclass_ietf_packet_fields_la_LIBADD =   -lopx_cps_api_common

libcpsclass_ietf_routing_types_la_SOURCES = @YANG_OUTPUT@/ietf-routing-types.cpp
libcpsclass_ietf_routing_types_la_LIBADD =   -lopx_cps_api_common

libcpsclass_ietf_routing_la_SOURCES = @YANG_OUTPUT@/ietf-routing.cpp
libcpsclass_ietf_routing_la_LIBADD =   -lopx_cps_api_common

libcpsclass_ietf_inet_address_la_SOURCES = @YANG_OUTPUT@/ietf-inet-address.cpp
libcpsclass_ietf_inet_address_la_LIBADD =   -lopx_cps_api_common

libcpsclass_bridge_model_la_SOURCES = @YANG_OUTPUT@/bridge-model.cpp
libcpsclass_bridge_model_la_LIBADD =   -lopx_cps_api_common

libcpsclass_l2_multicast_la_SOURCES = @YANG_OUTPUT@/l2-multicast.cpp
libcpsclass_l2_multicast_la_LIBADD =   -lopx_cps_api_common

libcpsclass_spd_la_SOURCES = @YANG_OUTPUT@/spd.cpp
libcpsclass_spd_la_LIBADD =   -lopx_cps_api_common

libcpsclass_system_status_la_SOURCES = @YANG_OUTPUT@/system-status.cpp
libcpsclass_system_status_la_LIBADD =   -lopx_cps_api_common

libcpsclass_ipsec_sad_la_SOURCES = @YANG_OUTPUT@/ipsec-sad.cpp
libcpsclass_ipsec_sad_la_LIBADD = -lopx_cps_api_common

libcpsclass_tunnel_la_SOURCES = @YANG_OUTPUT@/tunnel.cpp
libcpsclass_tunnel_la_LIBADD = -lopx_cps_api_common

libcpsclass_app_ztd_la_SOURCES = @YANG_OUTPUT@/app-ztd.cpp
libcpsclass_app_ztd_la_LIBADD = -lopx_cps_api_common

libcpsclass_dell_base_cleanup_events_la_SOURCES = @YANG_OUTPUT@/dell-base-cleanup-events.cpp
libcpsclass_dell_base_cleanup_events_la_LIBADD = -lopx_cps_api_common

libcpsclass_l3_multicast_la_SOURCES = @YANG_OUTPUT@/l3-multicast.cpp
libcpsclass_l3_multicast_la_LIBADD = -lopx_cps_api_common

libcpsclass_openconfig_telemetry_types_la_SOURCES = @YANG_OUTPUT@/openconfig-telemetry-types.cpp
libcpsclass_openconfig_telemetry_types_la_LIBADD = -lopx_cps_api_common

libcpsclass_openconfig_extensions_la_SOURCES = @YANG_OUTPUT@/openconfig-extensions.cpp
libcpsclass_openconfig_extentions_la_LIBADD = -lopx_cps_api_common

libcpsclass_openconfig_inet_types_la_SOURCES = @YANG_OUTPUT@/openconfig-inet-types.cpp
libcpsclass_openconfig_inet_types_la_LIBADD = -lopx_cps_api_common

libcpsclass_app_telemetry_la_SOURCES = @YANG_OUTPUT@/app-telemetry.cpp
libcpsclass_app_telemetry_la_LIBADD = -lopx_cps_api_common

libcpsclass_tam_la_SOURCES = @YANG_OUTPUT@/tam.cpp
libcpsclass_tam_la_LIBADD = -lopx_cps_api_common

libcpsclass_openconfig_telemetry_la_SOURCES = @YANG_OUTPUT@/openconfig-telemetry.cpp
libcpsclass_openconfig_telemetry_la_LIBADD = -lopx_cps_api_common

@YANG_OUTPUT@/%.h @YANG_OUTPUT@/%.cpp: @YANG_OUTPUT@/%-stamp; @:
@YANG_OUTPUT@/%-stamp: %.yang
	@ rm -f @YANG_OUTPUT@/$*.cpp
	@ rm -f @YANG_OUTPUT@/$*.h
	YANG_PATH=${YANG_DIRS} /usr/lib/opx/ar_parse_yang.sh $(notdir $<) @YANG_OUTPUT@ @YANG_OUTPUT@

clean-local:
	@(  if [ -d @YANG_OUTPUT@ ] ; then  \
        echo Cleaning @YANG_OUTPUT@; \
        rm -Rf @YANG_OUTPUT@* ; \
        fi; )


data_base_modeldir = /usr/share/opx/yang-models
data_base_model_DATA := \
    $(wildcard $(top_srcdir)/common/dell/*.yang) \
    $(wildcard $(top_srcdir)/common/yumaworks/*.yang) \
    $(wildcard $(top_srcdir)/rfc/*.yang) \
    $(wildcard $(top_srcdir)/yang-models/*.yang) \
    $(wildcard $(top_srcdir)/openconfig/*.yang)
